




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/08/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.meeting.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.meeting.entity.Meeting;
import com.application.meeting.struts.form.MeetingForm;
import com.application.meeting.dao.MeetingDAO;
 /**
 * 
 * Description:MeetingService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 左磊 QQ：30575951    <br />
 * 
 * History: <br />
 * 
 * 02/08/2012 
 * 
 */
public class MeetingService extends BaseService
{
	private MeetingDAO meetingDAO;

	public MeetingDAO getMeetingDAO() {
		return this.meetingDAO;
	}

	public void setMeetingDAO(MeetingDAO meetingDAO) {
		this.meetingDAO = meetingDAO;
	}
        

        public Meeting getMeeting(Meeting meeting) {
		return (Meeting) this.getBaseDao().queryByPk(meeting, meeting.getId());
	}
	
	public Integer getAllCountMeeting(MeetingForm meetingForm){
		return this.meetingDAO.getAllCountMeeting(meetingForm);
	}
	
	public List<Meeting> searchMeeting(MeetingForm meetingForm, PageBean pageBean) throws Exception {
		List<Meeting> meetingList = (List) this.meetingDAO.searchMeeting(meetingForm, pageBean);
		return meetingList;
	}
        
        public void deleteMeetings(MeetingForm meetingForm){
	   this.meetingDAO.deleteMeetings(meetingForm);	 
	}
        public List searchMeeting(final MeetingForm meetingForm) {
    		List<Meeting> meetingList = (List) this.meetingDAO.searchMeeting(meetingForm);
    		return meetingList;
    	}
}
